//
//  HomePageDetailFooterView.h
//  ShowYork
//
//  Created by hxh on 2020/10/4.
//  Copyright © 2020 hxh. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HomePageItemModel.h"
typedef enum : NSUInteger {
    XHFOOTERLIKE,
    XHFOOTERDISS,
    XHFOOTERYUSER,
    XHFOOTERFOLLOW,
    XHFOOTERCOMMENT,
    XHFOOTERTOPIC,
} XHFooterType;

NS_ASSUME_NONNULL_BEGIN

@protocol HomePageDetailFooterViewDelegate <NSObject>

@optional

- (void)updateVideoProgressValue:(CGFloat)value;

- (void)scrollViewEnable:(BOOL)isEnable;

- (void)progressBeginDraging;

- (void)changeVideoProgressValue:(CGFloat)value;

@end

@interface HomePageDetailFooterView : UIView

@property (nonatomic,assign)CGFloat progressValue;

- (instancetype)initWithCompleteBlock:(void(^)(XHFooterType type))completeBlock;
/// 关联视图
- (void)showInView:(UIView *)mainView delegate:(id<HomePageDetailFooterViewDelegate>)delegate;
/// 赋值
- (void)setItemModel:(HomePageItemModel *)itemModel animate:(BOOL)animate;
/// 显示
- (void)show;
/// 隐藏
- (void)hide;

- (void)resetProgress;



@end

NS_ASSUME_NONNULL_END
